<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="<%=path%>/js/jquery.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $('tbody tr:odd').addClass("trLight");

            $(".select-all").click(function () {
                if ($(this).attr("checked")) {
                    $(".checkBox input[type=checkbox]").each(function () {
                        $(this).attr("checked", true);
                    });
                } else {
                    $(".checkBox input[type=checkbox]").each(function () {
                        $(this).attr("checked", false);
                    });
                }
            });

        })
    </script>
    <style type="text/css">
        body {
            background: #FFF
        }
    </style>
</head>

<body>
<form method="post" action="<%=basePath%>updateUser" method="post" name="ThisForm">
    <div id="contentWrap">
        <!--表格控件 -->
        <div id="widget table-widget">
            <div class="pageTitle">用户修改</div>
            <div class="pageColumn">
                <div class="pageButton"></div>
                <table>
                    <input type="hidden" name="id" value="${sessionScope.id}">
                    <thead>
                    <th width="">用户名</th>
                    <th width=""><input type="text" id="username" name="username"/></th>
                    </thead>
                    <thead>
                    <th width="">密码</th>
                    <th width=""><input type="text" id="password" name="password"/></th>
                    </thead>
                    <thead>
                    <th width="">姓名</th>
                    <th width=""><input type="text" id="realname" name="realName"/></th>
                    </thead>
                    <thead>
                    <th width="">类型</th>
                    <th width="">
                        <select id="type" name="role">
                            <option value="">类型</option>
                            <option value="管理员">管理员</option>
                            <option value="服务人员">服务人员</option>
                            <option value="药剂师">药剂师</option>
                            <option value="医生">医生</option>
                            <option value="会员">会员</option>
                        </select>
                    </th>
                    </thead>
                    <thead>
                    <th colspan="2"><input type="submit" value="确定"/></th>
                    </thead>
                </table>
            </div>
        </div><!-- #widget -->
    </div>

</form>
</body>
</html>
